package cn.wolfcode.wolf2w.service.impl;

import cn.wolfcode.wolf2w.domain.Spot;
import cn.wolfcode.wolf2w.exception.LogicException;
import cn.wolfcode.wolf2w.redis.util.RedisKeys;
import cn.wolfcode.wolf2w.repository.SpotRepository;
import cn.wolfcode.wolf2w.service.ISpotService;
import cn.wolfcode.wolf2w.util.AssertUtils;
import cn.wolfcode.wolf2w.util.Consts;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.List;
import java.util.UUID;
import java.util.concurrent.TimeUnit;

@Service
public class SpotServiceImpl implements ISpotService {
    @Autowired
    private SpotRepository spotRepoository;

    @Autowired
    private StringRedisTemplate redisTemplate;
    //核心项目pom.xml有依赖了,我这里可以使用


    @Value("${sms.url}")
    private String smsUrl;//获取ap配置文件的数据
    @Value("${sms.appkey}")
    private String smsAppkey;


    @Override
    public void save(Spot u) {
        
    }

    @Override
    public void update(Spot u) {

    }

    @Override
    public Spot get(String id) {
        return null;
    }

    @Override
    public List<Spot> listAll() {
        return spotRepoository.findAll();
    }

    @Override
    public void delete(String id) {

    }

    @Override
    public boolean findByPhone(String phone) {
        return false;
    }

    @Override
    public void sendVerifyCode(String phone) {

    }

    @Override
    public String getVerifyCode(String phone) {
        return null;
    }

    @Override
    public void regist(String phone, String nickname, String password, String rpassword, String verifyCode) {

    }

    @Override
    public Spot login(String username, String password) {
        return null;
    }

    @Override
    public String setToken(Spot user) {
        return null;
    }

    @Override
    public Spot getUserByToken(String token) {
        return null;
    }
}
